home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
dmedia
/
playaifc.z
/
playaifc
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
ppppllllaaaayyyyaaaaiiiiffffcccc((((1111)))) ppppllllaaaayyyyaaaaiiiiffffcccc((((1111))))
NNNNAAAAMMMMEEEE
playaifc, playaiff - play an AIFF-C (or AIFF) audio sample file
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ppppllllaaaayyyyaaaaiiiiffffcccc [[[[ooooppppttttiiiioooonnnnssss]]]] ffffiiiilllleeeennnnaaaammmmeeee [[[[ffffiiiilllleeeennnnaaaammmmeeee2222 ............]]]]
ppppllllaaaayyyyaaaaiiiiffffffff [[[[ooooppppttttiiiioooonnnnssss]]]] ffffiiiilllleeeennnnaaaammmmeeee [[[[ffffiiiilllleeeennnnaaaammmmeeee2222 ............]]]]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_p_l_a_y_a_i_f_c parses AIFF-C (and/or AIFF) file(s) containing 8-bit or 16-bit
audio sample data (single channel, stereo, or 4-channel) and plays the
samples through the audio hardware. playaifc reads the contents of the
AIFF/AIFF-C Common and Sound Data chunks, and skips all other chunks. The
hardware sample rate is modified, if possible, so that it agrees with the
value in the Common chunk. By default, the hardware sample rate will not
be modified if another program is using an output audio port at a
conflictly rate. The -r (for "rude") option will override this behavior
and change the output sample rate regardless of output port use.
_p_l_a_y_a_i_f_c supports real-time decompression for G.711 mu-law mono or stereo
8-KHz, 16-bit data, and for G.722 mono or stereo 16-KHz data, 16-bit.
Note that the AIFF-C header identifier flags for these two compression
algorithms are currently recognized only by _p_l_a_y_a_i_f_c and other programs
written on top of the SGI audio file library. Note also that the Apple
proprietary compression schemes mentioned in the AIFF-C specification
cannot be decoded by SGI software. Consequently, AIFF-C files which are
moved between different system platforms should contain only
noncompressed audio sample data.
If everything parses correctly, playaifc returns a 0 value when it has
finished playing the input file(s). If there is an error, playaifc
returns 1.
_P_l_a_y_a_i_f_f is a link to _p_l_a_y_a_i_f_f which is installed for backward
compatibility. The two programs behave identically except that _p_l_a_y_a_i_f_f
by default changes the output sample rate (equivalent to _p_l_a_y_a_i_f_c with
the -_r option.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
----hhhh help: print a usage statement.
----vvvv verbose: detail info to stdout.
----qqqq quiet: suppress errors messages.
----dddd <device>
device: specify the audio device to which to direct output.
----pppp polite: before modifying the global output sample rate in the IRIS
Audio Processor, first check to see whether any other output ports
are currently active; if any other processes have open output ports,
don't modify the output rate
PPPPaaaaggggeeee 1111
ppppllllaaaayyyyaaaaiiiiffffcccc((((1111)))) ppppllllaaaayyyyaaaaiiiiffffcccc((((1111))))
----rrrr rude: change the output sample rate regardless of output ports in
use
FFFFIIIILLLLEEEESSSS
Source code for _p_l_a_y_a_i_f_c is installed here:
/usr/share/src/dmedia/soundcommands
BBBBUUUUGGGGSSSS
To play back files containing sample data which is compressed using
G.722, MPEG, or Aware algorithms, you will need to run _p_l_a_y_a_i_f_c with
nondegrading high priority (this is especially true for stereo compressed
data).
If being run as root, the priority is set to NDPNORMMAX which is the
highest normal process priority. If run as a user, the process is set to
the highest non-degrading priority allowed by the system. This parameter
is unfortunately by default lower than any normal process, but can be
changed using _s_y_s_t_u_n_e(_1_M). Alternately, see the man page _n_p_r_i(_1) for
information about how to set custom priorities and time slices.
_p_l_a_y_a_i_f_c doesn't restore the hardware output sample rate to its original
value when it finishes playing the AIFF-C / AIFF sample data files.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
recordaifc(1), apanel(1), aiff2aifc(1), aifcresample(1), aifccompress(1)
PPPPaaaaggggeeee 2222